{% macro navigation(current='index') %}
	<div class="container">
	{% if current_user.is_authenticated() %}
	  <ul class="nav navbar-nav">
	    <li {% if current == 'index' %}class="active"{% endif %}><a href="/">Home</a></li>
	    <li {% if current == 'news' %}class="active"{% endif %}><a>News</a></li>
	  </ul>
		<ul class="nav navbar-nav navbar-right">
			<li class="dropdown">
	      <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ current_user.username }} <span class="caret"></span></a>
	      <ul class="dropdown-menu">
					<li><a href="/user/{{ current_user.username }}">Profile</a></li>
	        <li role="separator" class="divider"></li>
	        <li><a href="/settings/{{ current_user.username }}">Settings</a></li>
	        <li role="separator" class="divider"></li>
	        <li><a href="/logout">Logout</a></li>
	      </ul>
			</li>
		</ul>
  {% else %}
	  <ul class="nav navbar-nav">
	    <li {% if current == 'index' %}class="active"{% endif %}><a href="/">Home</a></li>
	    <li {% if current == 'news' %}class="active"{% endif %}><a>News</a></li>
	  </ul>
	  <ul class="nav navbar-nav navbar-right">
	    <li {% if current == 'signup' %}class="active"{% endif %}><a href="{{ url_for('account.signup') }}">Signup</a></li>
	    <li {% if current == 'login' %}class="active"{% endif %}><a href="{{ url_for('account.login')}}">Login</a></li>
	  </ul>
  {% endif %}
	</div>
{% endmacro %}

{% macro render_topic(item) %}
{% endmacro %}
